// src/api/uaa/user.ts
import api from '@/api/api'
import type { User } from '@/type/user.ts'



const USER_URI = {
  LOGIN: '/user/account/login',
}


// 用户相关API封装
export const userApi = {

  login(username: string, password: string) : Promise<User> {
    return api.post(USER_URI.LOGIN, { username: username, password: password })
  },

}

export default userApi
